package net.lcheng.manage.vo;

import net.lcheng.model.PCategory;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by zwr on 2016/6/27 0027.
 */
public class PCategoryModel {

    private String categoryId;
    private String topCategoryId;//一级分类
    private String secondCategoryId;//二级分类

    private String categoryCode;
    @NotEmpty(message = "分类名不能为空")
    private String categoryName;
    private String categoryImage;

    @NotNull(message = "不能为空")
    private Integer orderNum;
    private String summary;
    private int status;


    private List<PCategory> topCategoryList;

    public List<PCategory> getTopCategoryList() {
        return topCategoryList;
    }

    public void setTopCategoryList(List<PCategory> topCategoryList) {
        this.topCategoryList = topCategoryList;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryImage() {
        return categoryImage;
    }

    public void setCategoryImage(String categoryImage) {
        this.categoryImage = categoryImage;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public String getSecondCategoryId() {
        return secondCategoryId;
    }

    public void setSecondCategoryId(String secondCategoryId) {
        this.secondCategoryId = secondCategoryId;
    }

    public String getTopCategoryId() {
        return topCategoryId;
    }

    public void setTopCategoryId(String topCategoryId) {
        this.topCategoryId = topCategoryId;
    }
}
